<?php
/**
 * Created by PhpStorm.
 * User: wangshikun
 * Date: 2018/12/26
 * Time: 19:44
 */

namespace pdd\api;


class PddDdkOauthGoodsPromUrlGenerate  extends Pdd
{

    public  $custom_parameters;//设置自定义参数
    private $Paras=array();
    //接口信息
    public function getApiMethodName(){
        return 'pdd.ddk.oauth.goods.prom.url.generate';
    }

    //获取业务参数
    public function getApiParas(){
        return $this->Paras;
    }

    //设置商品id
    public function setGoodsIdList($goods_id_list){
        $this->Paras['goods_id_list']="[$goods_id_list]";
    }

    //设置pid
    public function setPid($pid){
        $this->Paras['p_id']=$pid;
    }

    //设置招商多多客id
    public function set_zs_duo_id($zs_duo_id){
        $this->Paras['zs_duo_id']=$zs_duo_id;
    }

    //设置custom_parameters 自定义参数
    public function set_custom_parameters($custom_parameters){
        $this->Paras['custom_parameters']=$custom_parameters;
    }


   //是否生成小程序推广
    public function setGenerateWeApp($generate_we_app){
        $this->Paras['generate_we_app']=$generate_we_app;
    }


    //是否生成短链接，true-是，false-否
    public function setGenerateShortUrl($generate_short_url){
        $this->Paras['generate_short_url']=$generate_short_url;
    }


}